package me.qi.kancha.dto.enums;

import me.qi.kancha.dto.enums.base.BaseEnum;

/**
 * @author sun
 * @date 2022/10/29 18:09
 * @modified By：
 */
public enum BranchType implements BaseEnum<Integer> {
    // 类型（1分会，2会长单位，3副会长单位，4常务理事单位，5理事单位，6监事单位，7会员单位）
    BRANCH(1, "分会"),
    HUI(2, "会长单位"),
    FUHUI(3, "副会长单位"),
    CWLISHI(4, "常务理事单位"),
    LISHI(5, "理事单位"),
    JIANSHI(6, "监事单位"),
    HUIYUAN(7, "会员单位")
    ;

    private int value;
    private String desc;

    BranchType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String toString() {
        return String.format("%s:%s", super.toString(), this.desc);
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }

}
